@echo off

if "%1" == "" goto usage
set RootFolder=%1

setx DTS_Account "%RootFolder%\ConfigFile\Account.dtsConfig" -m
setx DTS_AD_To_CDS "%RootFolder%\ConfigFile\AD_To_CDS.dtsConfig" -m
setx DTS_Agreement "%RootFolder%\ConfigFile\Agreement.dtsConfig" -m
setx DTS_BudgetBuilder "%RootFolder%\ConfigFile\BudgetBuilder.dtsConfig" -m
setx DTS_ConfigFolder "%RootFolder%\ConfigFile -m
setx DTS_Daily_Fact_Load "%RootFolder%\ConfigFile\Daily_Fact_Load.dtsConfig" -m
setx DTS_FinAccount_Data_Load "%RootFolder%\ConfigFile\FinAccount_Data_Load.dtsConfig" -m
setx DTS_FinJournalTransaction_Load "%RootFolder%\ConfigFile\FinJournalTransaction_Load.dtsConfig" -m
setx DTS_ProtocolFeed "%RootFolder%\ConfigFile\NewProtocol_RexToAsset.dtsConfig" -m
setx DTS_Purchasing "%RootFolder%\ConfigFile\Purchasing.dtsConfig" -m
setx DTS_PurVendor_POAP_Load "%RootFolder%\ConfigFile\PurVendor_POAP_Load.dtsConfig" -m
setx DTS_RexToAsset_Organizations "%RootFolder%\ConfigFile\RexToAsset_Organizations.dtsConfig" -m
setx DTS_RexToCds_AdmPerson "%RootFolder%\ConfigFile\RexToCds_AdmPerson.dtsConfig" -m
setx DTS_RexToCds_AdmSponsor "%RootFolder%\ConfigFile\RexToCds_AdmSponsor.dtsConfig" -m
setx DTS_Rex_to_Asset_Agreements "%RootFolder%\ConfigFile\Rex_to_Asset_Agreements.dtsConfig" -m
setx DTS_Rex_to_Asset_Budgets "%RootFolder%\ConfigFile\Rex_to_Asset_Budgets.dtsConfig" -m
setx DTS_Rex_to_Asset_Funds "%RootFolder%\ConfigFile\Rex_to_Asset_Funds.dtsConfig" -m

goto end

:usage
@echo.
@echo Usage: SetEnvironment full-path-to-the-feed-sandbox
@echo.
pause

:end